package com.hubu.blog.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import java.io.Serial;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * VIP套餐表 实体类。
 *
 * @author 331126135@qq.com
 * @since 2025-06-10
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "VIP套餐表")
@Table(value = "blog_vip_plan", schema = "db_blog")
public class VipPlan implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 套餐ID，雪花算法生成
     */
    @Id
    @Schema(description = "套餐ID，雪花算法生成")
    private Long id;

    /**
     * 套餐名称(如年度SVIP)
     */
    @Schema(description = "套餐名称(如年度SVIP)")
    private String planName;

    /**
     * 套餐代码(如annual_svip)
     */
    @Schema(description = "套餐代码(如annual_svip)")
    private String planCode;

    /**
     * VIP类型
     */
    @Schema(description = "VIP类型")
    private String vipType;

    /**
     * VIP等级(1-10)
     */
    @Schema(description = "VIP等级(1-10)")
    private Integer vipLevel;

    /**
     * 有效期(天)
     */
    @Schema(description = "有效期(天)")
    private Integer duration;

    /**
     * 套餐价格
     */
    @Schema(description = "套餐价格")
    private BigDecimal price;

    /**
     * 套餐描述
     */
    @Schema(description = "套餐描述")
    private String description;

    /**
     * 套餐特权(JSON格式)
     */
    @Schema(description = "套餐特权(JSON格式)")
    private String privileges;

    /**
     * 状态
     */
    @Schema(description = "状态")
    private String status;

    /**
     * 是否删除：0-未删除 1-已删除
     */
    @Column(isLogicDelete = true)
    @Schema(description = "是否删除：0-未删除 1-已删除")
    private Boolean isDeleted;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 删除时间
     */
    @Schema(description = "删除时间")
    private LocalDateTime deleteTime;

}
